import 'package:json_annotation/json_annotation.dart';

part 'material.g.dart';

@JsonSerializable(explicitToJson: true)
class Material {
    Material();

    int id;
    int storeId;
    String storeName;
    @JsonKey(defaultValue: '')
    String menuId;
    int userId;
    String commodityId;
    @JsonKey(defaultValue: '')
    String meterialName;
    @JsonKey(defaultValue: 0)
    int meterialPrice;
    
    factory Material.fromJson(Map<String,dynamic> json) => _$MaterialFromJson(json);
    Map<String, dynamic> toJson() => _$MaterialToJson(this);
}
